package org.zxp.designpattern.decorator;

import org.omg.SendingContext.RunTime;

/**
 * @program: effectiveJava
 * @description:获取当前服务器可用内存
 * @author: X-Pacific zhang
 * @create: 2019-08-23 11:25
 **/
public class GetFreeMemory implements GetMsg {
    @Override
    public String getlong() {
        Runtime rt = Runtime.getRuntime();
        return rt.freeMemory()+"";
    }
}
